// Copyright © 2023 ycq_work@163.com. All rights reserved.

/**
 * @Author: ycq_work@163.com
 * @DATE: 2023/10/7
 * @Description:
*/
#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QtWidgets>
#include <QStackedWidget>

#include "SidebarWidget.h"

#include "MusicPlaybackStatusBar.h"

// contentTop
#include "newPage.hpp"

class MXGMainWindow : public QWidget
{
    Q_OBJECT

public:
    explicit MXGMainWindow(QWidget *parent = nullptr);

private:
    QWidget *contentTop = new OnlineMusic;            // 主内容界面
    QSplitter *splitterMain{};

    QVector<QWidget *> QWidgetVector;

    QStackedWidget *qStackedWidget;

private:
    static QSplitter* createVerticalSplitter(QWidget *parent, QWidget *content1, QWidget *content2,
                                                  Qt::Orientation orientation, int size1, int size2);

//    void showNewPage(int numPage);

    void init();
public slots:
    void onButtonClicked(int buttonId);

};
#endif // MAINWINDOW_H

